package org.noahsark.nsmessenger.config;

import java.io.File;

class Constant {

	// -------------------------------------------------------------------------system configuration
	static final String SYSTEM_CONFIG_FILE_PATH ="dat" + File.separator + "system.xml";
	
	// root element
	static final String SYSTEM_CONFIG_ROOT_NODE = "system";
	// server for transport message
	static final String SERVER_LIST = "servers";
	static final String SERVER = "server";
	static final String SERVER_ADDR_ATTRIBUTE = "addr";
	static final String SERVER_PORT_ATTRIBUTE = "port";

	// update configuration
	static final String UPDATE_SERVER_LIST = "update-servers";
	static final String UPDATE_SERVER = "server";
	static final String UPDATE_SERVER_ADDR_ATTRIBUTE = "addr";
	static final String UPDATE_SERVER_PORT_ATTRIBUTE = "port";
	// Total 4 modes.
	// 1.close, do no update.
	// 2.notify, make notification while the server has new updates;
	// 3.download, auto download updates but do no install;
	// 4.auto, download updates and install.
	static final String UPDATE_MODE = "update-mode";
	// count by day
	static final String UPDATE_FREQUENCY = "update-frequency";

	// --------------------------------------------------------------------------preference configuration
	// store in user's directory. NSMessenger create a exclusive directory
	// for every user to record their conversation logs, preference settings
	// and some other user data.
	static final String PREFERENCE_CONFIG_FILE_NAME = "preference.xml";
	static final String THEME = "theme";
	// message transport mode, either TCP or UDP
	static final String CONNECTION_TYPE = "connection-type";

}
